package com.bingxue.edu.management.shop.service;

import com.bingxue.edu.management.education.model.entity.ClassInfo;
import com.bingxue.edu.management.shop.model.req.OrderCreateReq;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * 联报搞活动
 * @author panbo
 * @since 2024/10/18
 */
@Slf4j
@Service
public class ActivityPackageService {


    /**
     * TODO 判断是否符合条件
     * @param req
     * @param classInfoList
     * @return
     */
    public boolean determineIfSatisfied(OrderCreateReq req, List<ClassInfo> classInfoList) {
        if (classInfoList.size() <= 0) {
            return false;
        }
        return false;
    }

    /**
     * TODO 计算折扣
     */
    public BigDecimal calculateDiscount(BigDecimal originalTotalPrice) {
        return BigDecimal.ZERO;
    }
}
